package org.game.db.proxy.bean;

import com.sojoys.artifact.build.data.base.BasePojoProxy;
import org.game.db.bean.Dating;

import java.util.Map;

/**
 * @author : DengYing
 * @CreateDate : 2017年11月30日 下午2:41:58
 * @Description ：Please describe this document
 */
public class DatingProxy extends BasePojoProxy<DatingProxy, Dating> {

    public void addDialogueCount(Map<Integer, Integer> countMap) {
        countMap.forEach((k, v) -> {
            int count = (int) t.getDialogueCount().computeIfAbsent(k, key -> 0);
            t.getDialogueCount().put(k, count + v);
        });
        t.update();
    }
}
